# class Animal(object):
#     def eat(self):
#         print("eating...")
#
#     def sleep(self):
#         # print("self...", id(self))
#         print("sleeping...")
#
# class Dog(Animal):
#     def swimming(self):
#         print("swimming...")
#
# alex = Dog()
#
# print(type(alex))
# print(isinstance(alex, Dog))
# print(isinstance(alex, Animal))
class Student:

    def __init__(self, name, score):
        self.name = name
        self.score = score

    def test(self):
        pass

alex = Student('alex', 90)

# print(alex.__dict__)
print(dir(alex))
print(alex.__class__)